#include <iostream>

const int final = 88;

int main()
{
	using namespace std;
	int n;

	cout << "Enter a number in the range 1-100 to find ";
	cout << "My favorite number: ";
	do
	{
		cin >> n;
		if (n < final)
		{
			cout << "Too low -- guess again: ";
		}
		else if (n > final)
		{
			cout << "Too high -- guess again: ";
		}
		else
		{
			cout << final << " is right!" << endl;
		}
	} while (n != final);
	system("pause");
	return 0;
}